package com.yanqu.road.entity.log.cross.chuhan;


import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

//个人战报
@FieldTypeAnnotation(tableName = "t_l_ck_chuhan_log_user_war", desc = "楚汉争霸-个人战报", dataUpload = true, autoSave = true, uploadCk = true, isCross = true, eventName = "chuhan_fight")
public class LogChuHanUserWar extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动分组ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "活动分组ID", dataAttribute = "group_id")
    private int groupId;
    @FieldTypeAnnotation(desc = "唯一编号")
    private int no;//唯一编号
    @FieldTypeAnnotation(desc = "城池ID", dataAttribute = "chasedeer_cityid")
    private int cityId;  // 城池ID
    @FieldTypeAnnotation(desc = "防守的", dataAttribute = "other_id")
    private long userIdDef;//防守的
    @FieldTypeAnnotation(desc = "进攻的")
    private long userIdAct;//进攻的
    @FieldTypeAnnotation(desc = "进攻方阵营", dataAttribute = "team_id")
    private int atkCamp;
    @FieldTypeAnnotation(desc = "防守方阵营", dataAttribute = "other_team")
    private int defCamp;
    @FieldTypeAnnotation(desc = "主将ID", dataAttribute = "other_type")
    private int defPatronsId ;
    @FieldTypeAnnotation(desc = "主将ID", dataAttribute = "item_id")
    private int actPatronsId ;// 主将ID
    @FieldTypeAnnotation(desc = "士兵数量", dataAttribute = "other_blood")
    private long defSoldierNum;// 士兵数量
    @FieldTypeAnnotation(desc = "士兵数量", dataAttribute = "hotpot_blood")
    private long actSoldierNum;// 士兵数量
    @FieldTypeAnnotation(desc = "加成", dataAttribute = "other_add")
    private int defAddition; // 加成
    @FieldTypeAnnotation(desc = "加成", dataAttribute = "mansion_sumadd")
    private int actAddition; // 加成
    @FieldTypeAnnotation(desc = "获得战功", dataAttribute = "other_get")
    private long defZhanGong; // 获得战功
    @FieldTypeAnnotation(desc = "获得战功", dataAttribute = "get_accnum")
    private long actZhanGong; // 获得战功
    @FieldTypeAnnotation(desc = "死了多少", dataAttribute = "other_hurt")
    private long defDieSoldierNum;  // 死了多少
    @FieldTypeAnnotation(desc = "死了多少", dataAttribute = "our_hurt")
    private long actDieSoldierNum;  // 死了多少
    @FieldTypeAnnotation(desc = "0平局 1攻方胜利 2守方胜利", dataAttribute = "change_type")
    private int winType;  // 谁赢了

    public LogChuHanUserWar(int activityId, int groupId, int no, int cityId, long userIdDef, long userIdAct, int atkCamp, int defCamp, int defPatronsId, int actPatronsId, long defSoldierNum, long actSoldierNum, int defAddition, int actAddition, long defZhanGong, long actZhanGong, long defDieSoldierNum, long actDieSoldierNum, int winType) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.no = no;
        this.cityId = cityId;
        this.userIdDef = userIdDef;
        this.userIdAct = userIdAct;
        this.atkCamp = atkCamp;
        this.defCamp = defCamp;
        this.defPatronsId = defPatronsId;
        this.actPatronsId = actPatronsId;
        this.defSoldierNum = defSoldierNum;
        this.actSoldierNum = actSoldierNum;
        this.defAddition = defAddition;
        this.actAddition = actAddition;
        this.defZhanGong = defZhanGong;
        this.actZhanGong = actZhanGong;
        this.defDieSoldierNum = defDieSoldierNum;
        this.actDieSoldierNum = actDieSoldierNum;
        this.winType = winType;
    }

    @Override
    public long getUserId() {
        return userIdAct;
    }
}
